package qimao.com.edu.entity;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.JoinColumn;
import jakarta.persistence.Table;

/**
 * 作品角色表
 * @author 86173
 *
 */
@Entity
@Table(name = "protagonist")
public class Protagonist {
	/**
	 * 角色id
	 */
    @Id
    @Column(name = "protagonist_id", nullable = false)
    private Integer protagonistId;
    /**
	 * 作品id
	 */
    @JoinColumn(name = "work_id", nullable = false)
    private int workId;
    /**
	 * 角色名称
	 */
    @Column(name = "name", nullable = false)
    private String name;
}
